/*
 * Copyright (c) 2010-2021 Contributors to the Eclipse Foundation
 * 
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 * 
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0
 * 
 * SPDX-License-Identifier: EPL-2.0
 */

/* Time Picker 
 *
 * Styling the Time Picker consists of the following: 
 *
 * 1. minor time values
 * 		.dijitTimePickerTick - set text color, size, background color of minor values
 * 		.dijitTimePickerTickHover - set hover style of minor time values
 * 		dijitTimePickerTickSelected - set selected style of minor time values
 *
 * 2. major time values - 1:00, 2:00, times on the hour 
 * 		set text color, size, background color, left/right margins for "zoom" affect
 * 		.dijitTimePickerMarkerHover - to set hover style of major time values
 * 		.dijitTimePickerMarkerSelected - set selected style of major time values
 * 
 * 3. up and down arrow buttons
 * 		.dijitTimePicker .dijitButtonNode - background-color, border
 * 		.dijitTimePicker .dijitUpArrowHover, .dijitTimePicker .dijitDownArrowHover - set background-color for hover state
 *
 *	Other classes provide the fundamental structure of the TimePicker and should not be modified. 
 */
/* override Button.css */
.oneui .dijitTimePicker .dijitButtonNode {
  padding: 0 0;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
}
.oneui .dijitTimePicker {
  border: 1px #aaaaaa solid;
  border-top: none;
  border-bottom: none;
  background-color: #fff;
  /* TODO: useless?   Appears to be overridden by settings on individual elements */
  -webkit-box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.15);
  padding: 0;
}
.oneui .dijitTimePickerItem {
  /* dijitTimePickerItem refers to both Tick's (minor values like 2:15, 2:30, 2:45) and Marker's (major values like 2PM, 3PM) */
  /*
  background-image: url("images/commonHighlight.png");
  background-position: 0 -1px;
  background-repeat: repeat-x;
  */
  background-color: #ffffff;
  border-top: solid 1px #e3e3e3;
  border-bottom: solid 1px #e3e3e3;
  margin-right: 0px;
  margin-left: 0px;
  margin-top: -1px;
}
/* to make up for lack of alpha transparency in IE6 */
.dj_ie6 .oneui .dijitTimePickerItem {
  background-image: none;
}
.oneui .dijitTimePickerTick {
  /* minor value */
  color: #000000;
  background-color: #ffffff;
}
.oneui .dijitTimePickerMarker {
  /* major value - 1:00, 2:00, times on the hour */

  background-color: #ffffff;
  font-weight: bold;
  white-space: nowrap;
  color: #000000;
}
.oneui .dijitTimePickerTickHover,
.oneui .dijitTimePickerMarkerHover,
.oneui .dijitTimePickerMarkerSelected,
.oneui .dijitTimePickerTickSelected
 {
  background-color: #cce8f2;
}
.dj_ie .oneui .dijitTimePickerMarkerSelected,
.dj_ie .oneui .dijitTimePickerTickSelected {
  background-color: #ddf2f9;
}
.dj_ie6 .oneui .dijitTimePickerTickHover,
.dj_ie6 .oneui .dijitTimePickerMarkerHover,
.dj_ie6 .oneui .dijitTimePickerMarkerSelected,
.dj_ie6 .oneui .dijitTimePickerTickSelected {
  position: relative;
  /* creates widening of element */
  zoom: 1;
  /* creates widening of element */
}
.oneui .dijitTimePickerTick .dijitTimePickerItemInner {
  padding: 2px;
  margin: 0;
}
.oneui .dijitTimePicker .dijitButtonNode {
	border-left: none;
	border-right: none;
	border-color: #bbbbbb;
	/*
	background-image: url("images/commonHighlight.png");
	background-position: 0 -1px;
	background-repeat: repeat-x;
	*/
	background-color: #f4f4f4;
	background-image: -moz-linear-gradient(top, #f4f4f4, #dbdbdb);
	background-image: -webkit-gradient(linear,0% 0%,0% 100%,from(#f4f4f4),to(#dbdbdb));
	background-image: -webkit-linear-gradient(top, #f4f4f4 0%, #dbdbdb 100%); /* Chrome10+,Safari5.1+ */
	background-image: -o-linear-gradient(top, #f4f4f4 0%, #dbdbdb 100%); /* Opera 11.10+ */
	background-image: -ms-linear-gradient(top, #f4f4f4 0%, #dbdbdb 100%); /* IE10+ */
	background-image: linear-gradient(top,  #f4f4f4 0%, #dbdbdb 100%); /* W3C */
	/*
	filter: progid:DXImageTransform.Microsoft.gradient( GradientType=0, startColorstr='#f4f4f4', endColorstr='#dbdbdb'); 
	*/
}
.oneui .dijitTimePicker .dijitUpArrowButton {
	border-bottom: 1px solid #bbbbbb;
}
.oneui .dijitTimePicker .dijitDownArrowButton {
	border-top: 1px solid #cccccc;
}
.dj_ie6 .oneui .dijitTimePicker .dijitButtonNode {
  background-image: none;
}
.oneui .dijitTimePicker .dijitArrowButtonInner {
  height: 100%;
  /* hack oneui.button.css */
  
  /*
  background-image: url("form/images/commonFormArrows.png");
  background-repeat: no-repeat;
  background-position: -140px 45%;
  */
  background-image: url("form/images/buttonArrows.png");
  background-repeat: no-repeat;
  background-position: -100px 53%;
}
.dj_ie6 .oneui .dijitTimePicker .dijitArrowButtonInner {
  background-image: url("form/images/buttonArrows8bit.png");
}
.oneui .dijitTimePicker .dijitDownArrowButton .dijitArrowButtonInner {
  /*background-position: -35px 45%;*/
  background-position: -151px 53%;
}
/* hover */
.oneui .dijitTimePicker .dijitUpArrowHover, 
.oneui .dijitTimePicker .dijitDownArrowHover {
	background-color: #e5e5e5;
	background-image: -moz-linear-gradient(top, #fefefe, #cccccc);
	background-image: -webkit-gradient(linear,0% 0%,0% 100%,from(#fefefe),to(#cccccc));
	background-image: -webkit-linear-gradient(top, #fefefe 0%, #cccccc 100%); /* Chrome10+,Safari5.1+ */
	background-image: -o-linear-gradient(top, #fefefe 0%, #cccccc 100%); /* Opera 11.10+ */
	background-image: -ms-linear-gradient(top, #fefefe 0%, #cccccc 100%); /* IE10+ */
	background-image: linear-gradient(top,  #fefefe 0%, #cccccc 100%); /* W3C */
	/*
	filter: progid:DXImageTransform.Microsoft.gradient( GradientType=0, startColorstr='#fefefe', endColorstr='#cccccc'); 
	*/
}
/* active */
.oneui .dijitTimePicker .dijitUpArrowActive, 
.oneui .dijitTimePicker .dijitDownArrowActive {
	background-color: #cccccc;
	background-image: -moz-linear-gradient(top, #dbdbdb, #f4f4f4);
	background-image: -webkit-gradient(linear,0% 0%,0% 100%,from(#dbdbdb),to(#f4f4f4));
	background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #f4f4f4 100%); /* Chrome10+,Safari5.1+ */
	background-image: -o-linear-gradient(top, #dbdbdb 0%, #f4f4f4 100%); /* Opera 11.10+ */
	background-image: -ms-linear-gradient(top, #dbdbdb 0%, #f4f4f4 100%); /* IE10+ */
	background-image: linear-gradient(top,  #dbdbdb 0%, #f4f4f4 100%); /* W3C */
	/*
	filter: progid:DXImageTransform.Microsoft.gradient( GradientType=0, startColorstr='#dbdbdb', endColorstr='#f4f4f4'); 
	*/
}
.oneui .dijitTimePicker .dijitUpArrowHover .dijitArrowButtonInner {
  /*background-position: -175px 45%;*/
  background-position: 0 53%;
}
.oneui .dijitTimePicker .dijitDownArrowHover .dijitArrowButtonInner {
  /*background-position: -70px 45%;*/
  background-position: -51px 53%;
}
